package com.durian.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 订单状态 枚举  (已完成：1，未完成：0，已支付：2，待支付：3)
 *
 * @author Durian
 * @date 2023/11/23
 */
@Getter
@AllArgsConstructor
public enum OrderStatus implements IEnum<Integer> {
    FINISHED(1, "已完成"),
    UNFINISHED(0, "未完成"),
    PAID(2, "已支付"),
    UNPAID(3, "待支付");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String name;
}
